<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<head>
<link rel="stylesheet" href="css/input.css" type="text/css">
</head>
<body>
	<s:if test="#session.msg=='yes'">
		<script>
			alert("发布成功");
		</script>
	</s:if>
	<c:remove var="msg" scope="session" />

	<form class="Form" action="usertext_sendTask" id="taskForm"
		method="post" enctype="multipart/form-data">
		<div style="float: left;" id="text">
			<ul>
				<li><textarea name="userText.text" id="TextArea1"
						style="width:380px;height:300px;z-index: 1;position: absolute;"
						onkeyup="checkLength(this);" placeholder="请输入需要发布的信息内容"></textarea>
				</li>
				<li
					style="z-index: 3000;position: absolute;margin-left: 240px;margin-top: 280px;"><span
					class="wordage">剩余字数：<span id="sy" style="color:Red;">70</span>
				</span>
				</li>
			</ul>
		</div>
		<div class="rightbox">
			<div id="messageBox3" class="messageBox1"></div>
			<ul style="float:left;margin-top:20px;">
				<li style="margin-bottom: 5px;"><select
					name="userText.type.typeId" style="width:150px;height:25px">
						<option value="nochoice">请选择信息类型</option>
						<s:iterator value="#session.typelist" var="t">
							<option value="${t.typeId}">${t.type}</option>
						</s:iterator>
				</select>
				<li style="margin-bottom: 5px;"><input type="text"
					style="width: 150px;" name="userText.transPoint"
					placeholder="信用值选填默认0" id="transPoint"></li>
				<li style="margin-bottom: 5px;"><input type="text"
					onClick="WdatePicker()"
					onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',minDate:'%y-%M-%d %H:{%m+10}',maxDate:'{%y+1}-%M-%d %H:%m',realDateFmt:'yyyy-MM-dd HH:mm'})"
					style="width: 150px;" name="limitday" placeholder="请选择有效期">
				</li>
				<li style="margin-bottom: 5px;">
					<div title="可选择上传一张图片" class="uploadPicButton"
						style="margin-left: 10px;">
						<input type="file" name="image" class="f" style="display: block;" />
					</div></li>
				<s:if test="#session.user==null&&#session.company==null">
					<li style="margin-left: 90px;"><a href="javascript:void(0);"
						class="buttonRelease" onclick="check1()">发布</a>
					</li>
				</s:if>
				<s:elseif test="#session.user!=null&&#session.company==null">
					<li style="margin-left: 90px;"><input type="submit"
						class="buttonRelease" value="发布"></li>
				</s:elseif>
				<s:elseif test="#session.company!=null">
					<li style="margin-left: 90px;"><a href="javascript:void(0);"
						class="buttonRelease" onclick="check4()">发布</a></li>
				</s:elseif>
			</ul>
		</div>
	</form>
</body>
</html>
